//
//  BaseViewController.h
//  MoodMovie
//
//  Created by 周文松 on 14-7-22.
//  Copyright (c) 2014年 com.talkweb.MoodMovie. All rights reserved.
//


#import <UIKit/UIKit.h>


typedef void (^SuccessLoginBlock)(UIViewController *viewController,BOOL isSuccess);

@interface BaseViewController : UIViewController
{
    SuccessLoginBlock _successLogin;
    NSURLConnection *_connection;
    id _parameters;
    NSArray *_datas; //静态
    NSMutableArray *_mDatas;
}

@property (nonatomic, copy) SuccessLoginBlock successLogin;
@property (nonatomic, strong) NSURLConnection *connection;
@property (nonatomic, strong) id parameters;
@property (nonatomic, strong) NSArray *datas;
@property (nonatomic, strong) NSMutableArray *mDatas;

- (id)initWithParameters:(id)parameters;

/**
 *  @brief  present简化
 *
 *  @param viewcontroller 要present的界面
 */
- (void)presentViewController:(UIViewController *)viewcontroller;

/**
 *  @brief  dismiss简化
 */
- (void)dismissViewController;

/**
 *  @brief  加上导航条present下个界面
 *
 *  @param controller 要present到的界面
 */
- (void)addNavigationWithPresentViewController:(UIViewController *)controller;


@end
